#ifndef WXSTREECTRL_H
#define WXSTREECTRL_H

#include "../wxswidget.h"

class wxsTreeCtrl: public wxsWidget {
  public:

    wxsTreeCtrl( wxsItemResData* Data );

  private:

    virtual void OnBuildCreatingCode();
    virtual wxObject* OnBuildPreview( wxWindow* Parent, long Flags );
    virtual void OnEnumWidgetProperties( long Flags );
    void FindAllImageLists( wxArrayString &aNames );
    void UpdateTreeItemList( void );

    wxArrayString    m_arrItems;            //!< Individual items for the tree control.
    wxString            m_sImageList;    //!< The name of the image list to use for images.
    wxImageList        m_imageList;        //!< The image list.
    bool                    m_bExpand;
};

#endif
